@extends('bootstrap-modal-layout')

@if($script_blade = 'permission/edit' )@endif

@section('title') 修改角色 @endsection
@section('body')
    <form action="{{ url('admin/role',['id'=>$data->id]) }}" method="post" class="form-horizontal" id="ajaxForm">
        <input type="hidden" name="_method" value="PUT"/>
        {!! csrf_field() !!}
        <div class="row form-group">
            <label for="display_name" class="col-md-2 control-label">角色名称</label>
            <div class="col-md-7 controls">
                <input type="text" name="display_name" id="display_name" class="form-control" placeholder="中文名称" value="{{ $data->display_name }}"/>
            </div>
        </div>
        <div class="row form-group">
            <label for="description" class="col-md-2 control-label">角色介绍</label>

            <div class="col-md-7 controls">
                <textarea name="description" id="description" rows="5" class="form-control">{{ $data->description }}</textarea>
            </div>
        </div>
        @include('submit-btn')
    </form>
@endsection
